﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace NinjaToolbox
{
    public class PhysicsObject : MonoBehaviour
    {
        public PhysicsObjectShapeBase shape;
        public bool enableGravity;

        /// <summary>
        /// Arg1 - Self, Arg2 - Other.
        /// </summary>
        public event Action<PhysicsObject, PhysicsObject> OnTriggerEnter;

        /// <summary>
        /// Arg1 - Self, Arg2 - Other.
        /// </summary>
        public event Action<PhysicsObject, PhysicsObject> OnTriggerStay;

        /// <summary>
        /// Arg1 - Self, Arg2 - Other.
        /// </summary>
        public event Action<PhysicsObject, PhysicsObject> OnTriggerExit;
    }
}
